package com.eorchis.module.trainingneeds.ui.commond;

import java.io.Serializable;
import java.util.Date;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommonField;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.trainingclass.domain.TrainingClass;
import com.eorchis.module.trainingneeds.domain.Questionnaire;
import com.eorchis.module.trainingneeds.domain.QuestionnaireSurveyObject;
import com.eorchis.module.user.domain.User;

/**
 * Title: QuestionnaireSurveyObjectValidCommond<br>
 * Description: 问卷调查对象ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author HuangTF
 * @createDate 2014-02-07
 * @version $Revision$
 */
public class QuestionnaireSurveyObjectValidCommond implements ICommond,ICommonField 
{
	private QuestionnaireSurveyObject questionnaireSurveyObject;
	
	private String[] surveyObjectIds;//调查对象ids
	
	public QuestionnaireSurveyObjectValidCommond()
	{
		questionnaireSurveyObject=new QuestionnaireSurveyObject();
	}
	@Override
	public Serializable getEntityID() {
		return questionnaireSurveyObject.getQuestionnaireSurveyObjectId();
	}
	@Override
	public IBaseEntity toEntity() {
		return questionnaireSurveyObject;
	}
	/**
	 * 获取问卷调查对象ID
	 */	
	public String getQuestionnaireSurveyObjectId() {
		return questionnaireSurveyObject.getQuestionnaireSurveyObjectId();
	}
	/**
	 * 设置问卷调查对象ID
	 */	
	public void setQuestionnaireSurveyObjectId(String questionnaireSurveyObjectId) {
		questionnaireSurveyObject.setQuestionnaireSurveyObjectId(questionnaireSurveyObjectId);
	}
	/**
	 * 获取问卷
	 */	
	public Questionnaire getQuestionnaire() {
		return questionnaireSurveyObject.getQuestionnaire();
	}
	/**
	 * 设置问卷
	 */	
	public void setQuestionnaire(Questionnaire questionnaire) {
		questionnaireSurveyObject.setQuestionnaire(questionnaire);
	}
	/**
	 * 获取调查对象ID
	 */	
	public String getSurveyObjectId() {
		return questionnaireSurveyObject.getSurveyObjectId();
	}
	/**
	 * 设置调查对象ID
	 */	
	public void setSurveyObjectId(String surveyObjectId) {
		questionnaireSurveyObject.setSurveyObjectId(surveyObjectId);
	}
	/**
	 * 获取调查对象类型
	 */	
	public Integer getSurveyObjectType() {
		return questionnaireSurveyObject.getSurveyObjectType();
	}
	/**
	 * 设置调查对象类型
	 */	
	public void setSurveyObjectType(Integer surveyObjectType) {
		questionnaireSurveyObject.setSurveyObjectType(surveyObjectType);
	}
	/**
	 * 获取填写方式
	 */	
	public Integer getWriteType() {
		return questionnaireSurveyObject.getWriteType();
	}
	/**
	 * 设置填写方式
	 */	
	public void setWriteType(Integer writeType) {
		questionnaireSurveyObject.setWriteType(writeType);
	}
	@Override
	public Integer getActiveState() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Date getCreateDate() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public void setActiveState(Integer arg0) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void setCreateDate(Date createDate) {
		// TODO Auto-generated method stub
		
	}
	public String[] getSurveyObjectIds() {
		return surveyObjectIds;
	}
	public void setSurveyObjectIds(String[] surveyObjectIds) {
		this.surveyObjectIds = surveyObjectIds;
	}
}
